<div id="wrapper-content">
 <table class="titrepage" width="100%">
        <tr>              
     <td >La liste des animaux</td>
     <td align="right">Total | <?php echo $total?> </td>
     
 </tr>
 </table>
  <div align="left" id="ajouter">
<a href="<?php echo site_url('product/add_new_animal')?>">Ajouter nouveau animal</a>
</div>
    <table width="100%" class="list">
        <thead>
        <tr>
            <th>Img</th>
            <th>Nom</th>
            <th>Cat&eacute;gorie</th>
            <th>Prix</th>
            <th colspan="2">Action</th>
          </tr>
        </thead>
        <?php foreach ($query as $aRow):?>
            <?php
                $image_path = './assets/thumbs/'.$aRow['img'];
                if(file_exists($image_path)){
                    $image_path = base_url().'assets/thumbs/'.$aRow['img'];    
                }else{
                    $image_path = base_url().'assets/noimage.gif';
                }
            ?>
            <tr>
                <td width="100px"><img border="0" width="80px" src="<?php echo $image_path;?>"/></td>
                <td><?php echo $aRow['nom'];?></td>
                <td><?php echo $aRow['nomfr'];?></td>
                <td><?php if($aRow['prix']!="") echo $aRow['prix'].' &euro;'; else echo "N/A";?></td>
                <td width="70px"><a  href="<?php echo site_url('product/update_animal/'.$aRow['id'].'/'.$per_page.'/'.$off_set);?>" ><img border="0"src="<?php echo base_url().'assets/admin/'?>images/modifier.png"/></a></td>
                <td width="70px">
                    <a class="supprimer" href="#" ><img border="0"src="<?php echo base_url().'assets/admin/'?>images/supprimer.png"/></a>
                    <div style="display:none">
                        Confirmer <br/>
                        <a href="<?php echo site_url('product/delete_animal/'.$aRow['id'].'/'.$per_page.'/'.$off_set);?>"> <img border="0"src="<?php echo base_url().'assets/admin/'?>images/oui.png"/></a>
                        <a class="non" href="#" ><img  border="0"src="<?php echo base_url().'assets/admin/'?>images/non.png"/></a>
                    </div> 
                </td>
            </tr>
            <?php endforeach;?> 
    </table>
    <?php echo $pagination;?>
</div>
<!--END wrapper-content-->
